<title>{maintitle}</title>
<form name="frmFillter" action="{f_action}" method="post">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">  
<tr bgcolor="#E7E7E7">
  <td height="25" colspan="2" class="row2" style="border-bottom: solid 1px #CCCCCC">&nbsp;<a href="http://localhost/myonline/index.php" class="lMenu">Home</a> > {subcat}</td>
    </tr>
<tr>
  <td align="center" valign="bottom" class="text-default">&nbsp;</td>
  <td align="center" valign="bottom" class="text-default">&nbsp;</td>
</tr>
<tr>
  <td align="left" valign="bottom" class="text-default">
  &nbsp;&nbsp;&nbsp;&nbsp; Show
	<select name="perPageItem" onChange="frmFillter.submit()">
	<option value="10">10</option>
	<option value="15">15</option>
	<option value="20">20</option>
	<option value="25">25</option>
	</select>  items per page  </td>
  <td align="center" valign="bottom" class="text-default"> Refine search by region : 
  <select name="optContry" id="optContry" onChange="frmFillter.submit()">
	   <option value="" selected>Select location </option>
	   <option value="">-----All---</option>
      <!-- BEGIN countryselect -->
      <option value="{countryselect.bvalue}">{countryselect.bcaption}</option>
      <!-- END countryselect -->
    </select></td>
</tr>
<tr>
  <td height="20" colspan="2" align="center" class="text-default"><hr color="#EFEFEF"></td>
  </tr>
</table>
</form>
{NOPRO}
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="display:{block}">
    <form name="frmmain" method="POST" action="" >
	<input type="hidden" name="type" value="addToCard">
	<input type="hidden" name="chkSes" value="1">
	<input type="hidden" name="oldurl" value="{oldurl}">
   <tr>
 <td width="27" height="35" align="right" valign="bottom"><img src="{url}images/select_arrow.gif" width="17" height="25" border="0"></td>
 <td colspan="2" valign="top" nowrap class="row1">Select  <a href="javascript:void(0)" onClick="check_All(true)" class="lMenu"> 
   <input name="chkCOm1" type="checkbox" id="chkCOm1" value="checkbox" onClick="check_All(true)">
       Select All</a> |
	<a href="javascript:void(0)" onClick="check_All(false)" class="lMenu"> Clear All  </a></td>
     <td width="637" align="right" valign="top" class="lMenu">
	<input type="button" name="Button"  value=" " class="contactbuttom" onClick="Addcart('Contact')" style="cursor:hand">
    <input type="button" name="Button1" value=" "  class="addtocard" onClick="Addcart('addToCard')"  style="cursor:hand"></td>
	  </tr>
   <!-- BEGIN productList -->
   <tr>
     <td height="10" align="center" class="row1"></td>
     <td class="row1"></td>
     <td width="248" valign="top" class="lMenu"></td>     
     <td valign="top" class="lMenu"></td>
   </tr>
   <tr>
	<td width="27" align="right" valign="top" class="row1">{productList.CHECKBOX}</td>
	<td width="130" align="center" valign="top" class="row1">{productList.photo}</td>
	<td colspan="2" valign="top" class="lMenu"> 
	{productList.pName}<br>
	{productList.pModel}   <br>
	{productList.Contact}<br>    <br>
	{productList.GoldSupplier}</td>
	</tr> 
   <tr>
     <td height="10" align="center" class="row1"></td>
     <td class="row1"></td>
     <td valign="top" class="lMenu"></td>     
     <td valign="top" class="lMenu"></td>
   </tr>
     <tr>
     <td height="1" colspan="4" align="center" bgcolor="#CCCCCC"></td>
     </tr>
    <!-- END productList --> 
  <tr>
     <td height="35" align="right" valign="top"><img src="{url}images/selec_bottrrow.gif" width="17" height="25" align="right"></td>
     <td colspan="2" valign="middle" class="row1"> 
	 Select <a href="javascript:void(0)" onClick="check_All(true)" class="lMenu">
   <input name="chkCOm" type="checkbox" id="chkCOm" value="checkbox" onClick="check_All(true)">Select All</a> |
	<a href="javascript:void(0)" onClick="check_All(false)" class="lMenu"> Clear All  </a></td>
   <td align="right" valign="middle" class="lMenu">
   <input type="button" name="Button"  value=" " class="contactbuttom" onClick="Addcart('Contact')"  style="cursor:hand">
   <input type="button" name="Button" value=" "  class="addtocard" onClick="Addcart('addToCard')"  style="cursor:hand"></td>
  </tr>
    </form>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableF">
<tr style="display:{navidis}"><form name="frmPage" action="{g_action}" method="post">
    <td height="21" align="center" bgcolor="#E7E7E7" class="text-default" style="border-bottom: solid 1px #CCCCCC"> &nbsp;{NAVIGATOR}</td>
    <td align="right" valign="middle" bgcolor="#E7E7E7" class="text-default" style="border-bottom: solid 1px #CCCCCC">
	Go to page : 
    <input name="txtgoto" type="text" id="txtgoto" size="5" maxlength="5">&nbsp;
	<input type="submit" name="Submit" value="Go">&nbsp;
	</td>
	</form>
</tr>
</table>
<br>

<script language="javascript">
	
	var the_form	= window.document.frmmain
	var f_form = window.document.frmFillter
	select_list("{NumPage_value}",f_form.perPageItem)
	select_list("{zip_value}",f_form.optContry)
	
	function Addcart(act){
		var proid = selected_item() ;
		if(proid != ""){
			the_form.action="{a_action}"
			if(act=='Contact'){
				/*the_form.chkSes.value=1
				the_form.target ="_blank" ;*/
				window.open("feedback.php?proid="+proid+"&chkSes=1&act=contacts&type=Contact&oldurl={oldurl}","_blank","width=600,height=800,toolbar=no, scrollbars=yes,resizable=yes, status=yes,toolbar=no, menubar=no,location=no") ;
				return ;
			}else{
				the_form.chkSes.value=0
				the_form.target ="_self"
			}
			the_form.type.value=act	
			the_form.submit()
		}
	}
	function check_All(status) {
		for (i = 0; i < the_form.length; i++) {
			the_form.elements[i].checked = status
		}
	}
	function delete_list(the_url) {
		if (selected_item()){
			question = confirm("Are you sure to delete?")
			if (question != "0"){
				the_form.action = the_url
				the_form.submit()
			}
		}
	}
	function selected_item(){
		var name_count = the_form.length;
		var proid ="" ;
		for (i=0;i<name_count;i++){
			if (the_form.elements[i].checked){
				proid += the_form.elements[i].value + ",";
			}
		}
		if(proid == ""){
			alert('Please! choose a product') ;
			return proid;
		}else{
			return proid ;
		}
	}
	function select_list(the_value,the_list){
		var option_count = the_list.options.length;	
		for (i=0;i<option_count;i++){
			if (the_value==the_list.options[i].value){
				the_list.options[i].selected=true;
				break;
			}
		}
	}	
	function openwin(url,w_title,width,height){
		var maxw = window.screen.availWidth
		var maxh = window.screen.availHeight
		var win = window.open(url,w_title,'screenX=0,screenY=0,left='+((maxw-width)/2)+',top=0,width=' + width + ',height=' + height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no')
		win.focus()
	}
</script>